home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / FakeStart 1.0 / FS_Headers / FakeStart.h next >
Encoding:
C/C++ Source or Header  |  1996-04-16  |  1.5 KB  |  73 lines  |  [TEXT/CWIE]

  1. /****
  2.     File.....:     FakeStart.h
  3.     Date.....:     Thursday, April 04, 1996
  4.     By.......:     Ken Earle. No rights reserved.
  5. ****/
  6.  
  7. #pragma once
  8.  
  9. // For finding the Finder
  10. #define kostypeCreatorMac    'MACS'
  11. #define kostypeFinder        'FNDR'
  12.  
  13. // Generic alert ID
  14. #define kCannotFunctionAlertID     1000
  15. // STR# for the alert messages
  16. #define kErrorStringID            1000
  17. // STR# for other strings
  18. #define kGeneralStringID        1001
  19.  
  20. // Error indices into STR# 1000
  21. typedef enum ErrorIndex
  22.     {
  23.     eGeneralFailure_ErrorIndex = 1,
  24.     eMachineTooOld_ErrorIndex = 2,
  25.     ePreSystem7_ErrorIndex = 3,
  26.     eNoAppleEvents_ErrorIndex = 4,
  27.     eApplicationNotFound_ErrorIndex = 5,
  28.     eMemoryOut_ErrorIndex = 6
  29.     } ErrorIndex;
  30.  
  31. // Indices into STR# 1001
  32. typedef enum GeneralIndex
  33.     {
  34.     eAppCreator_GeneralIndex = 1    // app's creator, eg "JAGO"
  35.     } GeneralIndex;
  36.  
  37. // Describing the "real" application
  38. #define realApplication_type    'APPL'
  39. // CHANGE STR# 1001 string 1 to override this default.
  40. #define kDefaultAppCreator        'JAGO'
  41.  
  42. // CHANGE this to TRUE if your real app is AppleEvent-aware.
  43. #define APP_IS_AE_AWARE            FALSE
  44.  
  45. #define NUM_HANDLES_TOP            100                    // maximum memory fragments
  46.  
  47. // Globals for system 7
  48. typedef struct SysDetails
  49.     {
  50.     Boolean        hasGestalt,
  51.                 hasSystem7,
  52.                 hasFSS,
  53.                 hasAE,
  54.                 hasColor,
  55.                 dummy;
  56.     } SysDetails;
  57.  
  58.  
  59. // Element in a linked list of FSSpec
  60. typedef struct FSSpecElement
  61.     {
  62.     struct FSSpecElement    *next;
  63.     FSSpec                    fss;
  64.     } FSSpecElement, *FSSpecElementPtr;
  65.  
  66. // Mockup of a typical SIZE resource, 10 bytes
  67. typedef struct SIZE
  68.     {
  69.     short    someFlags;
  70.     long    preferredSize;
  71.     long    minimumSize;
  72.     } SIZE, *SIZEPtr;
  73.